package lysjmaster.base.auth.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Objects;

/**
 * @author Created by zk on 2019-12-06 17:42
 * @description
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PermissionCacheVO {
    private String id;
    private String path;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PermissionCacheVO that = (PermissionCacheVO) o;
        return Objects.equals(path, that.path);
    }

    @Override
    public int hashCode() {
        return Objects.hash(path);
    }
}
